package kr.hkit.powerjava.chapter11.work;

public class SmartPhone extends Phone{
	private String osType;
	private String osVersion;
	private int memory;
	private boolean isCamera;
	private boolean isBluetooth;

	public SmartPhone() { }
	public SmartPhone(String product, int price, String type, String osType,
			String osVersion, int memory, boolean isCamera, boolean isBluetooth) {
		super(product, price, type);
		this.osType = osType;
		this.osVersion = osVersion;
		this.memory = memory;
		this.isCamera = isCamera;
		this.isBluetooth = isBluetooth;
		
	}
	public String getOsType() {
		return osType;
	}
	public void setOsType(String osType) {
		this.osType = osType;
	}
	public String getOsVersion() {
		return osVersion;
	}
	public void setOsVersion(String osVersion) {
		this.osVersion = osVersion;
	}
	public int getMemory() {
		return memory;
	}
	public void setMemory(int memory) {
		this.memory = memory;
	}
	public boolean isCamera() {
		return isCamera;
	}
	public void setCamera(boolean isCamera) {
		this.isCamera = isCamera;
	}
	public boolean isBluetooth() {
		return isBluetooth;
	}
	public void setBluetooth(boolean isBluetooth) {
		this.isBluetooth = isBluetooth;
	}
	
	@Override
	public String toString() {
		return "SmartPhone [제조사 = "+getProduct()+", 가격 = "+getPrice()+
				", 통신 유형 = "+getType()+", \n	 OSType = " + osType + ", OSVersion = " + osVersion
				+ ", memory = " + memory + ", 카메라 장착 = " + isCamera
				+ ", 블루투스 지원 = " + isBluetooth + "]\n";
	}	
	
}
